package com.poobo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.poobo.dao.IResourcesDao;
import com.poobo.entity.TbResources;
import com.poobo.service.IResourcesService;
import com.poobo.util.pager.Page;
@Service
@Transactional
public class ResourcesServiceImpl implements IResourcesService{
	@Autowired
	private IResourcesDao resourcesDao;
	public IResourcesDao getResourcesDao() {
		return resourcesDao;
	}
	public void setResourcesDao(IResourcesDao resourcesDao) {
		this.resourcesDao = resourcesDao;
	}
	@Override
	public TbResources queryResourcesById(Integer id) {
		return resourcesDao.queryResourcesById(id);
	}
	@Override
	public Page queryResourcesPage(TbResources resources, Page page) {
		return resourcesDao.queryResourcesPage(resources, page);
	}
	@Override
	public void deleteResourcesById(Integer id) {
		resourcesDao.deleteResourcesById(id);
	}
	@Override
	public void saveResources(TbResources resources) {
		resourcesDao.saveResources(resources);
	}
	@Override
	public void editResources(TbResources resources) {
		resourcesDao.editResources(resources);
	}
	@Override
	public List<TbResources> queryAll() {
		return resourcesDao.queryAll();
	}
	@Override
	public List<TbResources> queryAllGames() {
		return resourcesDao.queryAllGames();
	}
	@Override
	public List<TbResources> queryAllOther() {
		return resourcesDao.queryAllOther();
	}
	@Override
	public List<TbResources> queryRsourcesByType(Short type) {
		return resourcesDao.queryRsourcesByType(type);
	}
}
